/**
 * Created by shidoudou on 14-5-12.
 */

var mySwiper = new Swiper('.swiper-container',{
    pagination: '.pagination',
    paginationClickable: true,
    mode: 'vertical'
})

$(function(){
    var _width = $(window).width() +'px';
    var _height = $(window).height() + 'px';
    console.log(_width);
    $(".swiper-container").css('width', _width);
    $(".swiper-slide").css('width', _width);
    $(".swiper-container").css('height', _height);
    var buttomLog_left = ($(window).width()-79)/2 + 'px';
    console.log($(window).width());
    console.log($('.buttom').width());
    console.log(buttomLog_left);
    $('.buttom').css('left', buttomLog_left);

    function animateOptict(){
        $('.buttom').animate({
            opacity:0
        },1200,function(){
            console.log(1);
            $(this).animate({opacity:1},1200);
        });
    }

    setInterval(animateOptict,2400);

    $('input').click(function(){
        $(this).focus();
    });

    //get url id
    var id = getParameter("id");
    $('#getId').val(id);
    console.log($('#getId').val());

    $('#tj').click(function(){
        $('.form-group').submit();
    });

//    $('#s_slider').toggle('slow',function(){
//        $(this).css('background-image','url(img/backgrounds/2.jpg)' )
//    })

})
